package de.unibi.mmi.homeauto.team1.constants;

public class KITCHEN {
	public static final int SMOKE_ID = 20;
	public static final int WINDOW_ID = 21;
	public static final int DOOR_ID = 22;
	public static final int CURRENT_ROOM_TEMP_ID = 23;
	public static final int HEATING_ID = 24;
	public static final int SET_ROOM_TEMP_ID = 25;
	public static final int LAMP_1_ID = 26;
	public static final int LAMP_2_ID = 27;
	public static final int COOKER_ID = 28;
	public static final int OVEN_ID = 29;
	public static final int CURRENT_OVEN_TEMP_ID = 30;
	public static final int SET_OVEN_TEMP_ID = 31;

	public static final int[] IDS = { KITCHEN.SMOKE_ID, KITCHEN.WINDOW_ID,
			KITCHEN.DOOR_ID, KITCHEN.CURRENT_ROOM_TEMP_ID, KITCHEN.HEATING_ID,
			KITCHEN.SET_ROOM_TEMP_ID, KITCHEN.LAMP_1_ID, KITCHEN.LAMP_2_ID,
			KITCHEN.COOKER_ID, KITCHEN.OVEN_ID, KITCHEN.CURRENT_OVEN_TEMP_ID,
			KITCHEN.SET_OVEN_TEMP_ID };

	private static final float[] values = new float[12];

	public static final void setValue(int id, float value) {
		values[id - 20] = value;
	}

	public static final float getValue(int id) {
		return id >= 20 && id <= 31 ? values[id - 20] : -1;
	}
}
